package com.zhongyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongyu.pojo.Cangku;
import com.zhongyu.pojo.Goods;
import com.zhongyu.pojo.User;
import com.zhongyu.vo.GoodsVo;
import com.zhongyu.vo.PageResult;

import java.util.List;

public interface GoodsService  extends IService<Goods> {

    PageResult searchAll(Integer pageNo, Integer pageSize, GoodsVo goodsVo);
    List<Goods> searchAll();
    Goods searchById(Integer id);
    List<Goods>searchByName(String  name);
    List<Goods>searchByCode(String  code);
    void add(Goods goods);
    void del(Integer id);
    void update(Goods goods);



    List<Goods>searchId(Integer  providerId);
}
